<template>
  <div class="home">
    <el-row :gutter="20">
      <el-col :span="24">
        <el-card class="welcome-card">
          <template #header>
            <div class="card-header">
              <h2>欢迎使用学生管理系统</h2>
            </div>
          </template>
          <div class="card-content">
            <p>这是一个基于Vue3和Spring Boot的学生管理系统。</p>
            <p>您可以：</p>
            <ul>
              <li>查看所有学生信息</li>
              <li>添加新学生</li>
              <li>编辑学生信息</li>
              <li>删除学生记录</li>
            </ul>
            <el-button type="primary" @click="$router.push('/students')">
              开始使用
            </el-button>
          </div>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<style scoped>
.home {
  padding: 20px;
}

.welcome-card {
  margin-bottom: 20px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-content {
  text-align: center;
  padding: 20px;
}

.card-content ul {
  text-align: left;
  margin: 20px auto;
  max-width: 300px;
}

.card-content li {
  margin: 10px 0;
}
</style> 